package com.hdrx.fundhelper.dao.pojo;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.springframework.data.annotation.Id;

/**
 * 基金信息
 *
 * @author houdx
 * @TableName fund_info
 */
@Data
@ApiModel("基金信息")
public class FundInfo implements Serializable {

    private static final long serialVersionUID = -955384929023573856L;
    /**
     * 基金代码
     */
    @NotBlank(message = "[基金代码]不能为空")
    @Size(max = 6, message = "编码长度不能超过6")
    @ApiModelProperty("基金代码")
    @Length(max = 6, message = "编码长度不能超过6")
    @Id
    private String fundCode;
    /**
     * 基金名称
     */
    @Size(max = 50, message = "编码长度不能超过50")
    @ApiModelProperty("基金名称")
    @Length(max = 50, message = "编码长度不能超过50")
    private String fundName;
    /**
     * 基金类型
     */
    @Size(max = 10, message = "编码长度不能超过10")
    @ApiModelProperty("基金类型")
    @Length(max = 10, message = "编码长度不能超过10")
    private String fundType;
    /**
     * 基金经理
     */
    @Size(max = 10, message = "编码长度不能超过10")
    @ApiModelProperty("基金经理")
    @Length(max = 10, message = "编码长度不能超过10")
    private String fundManager;
    /**
     * 风险等级
     */
    @Size(max = 10, message = "编码长度不能超过10")
    @ApiModelProperty("风险等级")
    @Length(max = 10, message = "编码长度不能超过10")
    private String riskLevel;
    /**
     * 备注
     */
    @Size(max = 500, message = "编码长度不能超过500")
    @ApiModelProperty("备注")
    @Length(max = 500, message = "编码长度不能超过500")
    private String remake;


}
